
<!doctype html>
<html>
<head>
<?php $this->inc('_pub/weys~imp'); ?>
<title>数据分页演示 - DEMO</title>
</head>

<body>
<?php $this->inc('_pub/weys~head'); ?>

<article class="" style="padding-top:2rem">

    <h3>pager - 数据分页演示</h3>
    <p class="tc">
        <a href='<?=path()?>demo-pager'>clear:search</a> # 
        <a href='<?=path()?>demo-pager?keywd=Test'>search:Test</a>
    </p>

    <div class="list2">

        <div class="shead">
            <span class="r"><?=$pager['page']?>/<?=$pager['pmax']?></span>
            <div class="">数据分页演示</div>
        </div>
        <?php foreach($lists as $i=>$row){ ?>
        <div class="row">
            <div class="col1 img"><a href="#" class="fa fa-header "></a></div>
            <div class="col8 main">
                <p><a href='<?=path("demo.$row[did]")?>'><?=$row['title']?></a></p> 
                <p class="note">
                    <?=date('Y-m-d H:i:s',$row['atime'])?> / 
                    <?php echo isset($dic[$row['catid']]) ? $dic[$row['catid']]['title'] : "(未知类别:{$row['catid']})"; ?>
                </p>
            </div>
            <div class="col2 more">
                <a class="tag" href='<?=path("api/demo.$row[did]")?>'>api</a>
                <a class="tag" href='<?=path("api/demo.$row[did]")?>?debug=1'>debug</a>
            </div>
        </div>
        <?php } ?>

        <div class='pg_bar'>
          <?php $this->inc('_pub/pager'); ?>
        </div>

    </div>

<hr />

<ul>
    <li>说明：略；</li>
</ul>

<?php dump($row, $pager); ?>

</article>

<?php $this->inc('_pub/weys~foot'); ?>
</body>
</html>


